package com.myjava.managesystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.myjava.managesystem.dto.SetmealDto;
import com.myjava.managesystem.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    @Transactional
    void saveSetmealWithDish(SetmealDto setmealDto);

    IPage<SetmealDto> getPageWithCategory(int page, int pageSize);

    void removeSetmealWithDish(List<Long> ids);

    void updateStatusWithDish(int st, List<Long> ids);
}
